#include <OsgWindows.h>
Definition at line 7 of file OsgWindows.h.
|
|
A constructor. Initializes the all the private variables. Definition at line 2 of file OsgWindows.cpp. References clickedFrameId, currentFrameNum, eventHandler, m_b_AudioInserted, mainRoot, onDisplayFrameId, GUICommandManager::setUndoLevel(), textRoot, and viewer. |
|
|
creates a CommandCopy object and awakes the GUICommandManager about this operation.
Definition at line 433 of file OsgWindows.cpp. References CommandCopy::execute(), and osgwind. |
|
|
creates a CommandCopy object and awakes the GUICommandManager about this operation. Definition at line 427 of file OsgWindows.cpp. References CommandCopy::execute(), and osgwind. Referenced by RightView::OnObjectrightmenuCopy(). |
|
|
creates a CommandCut object and awakes the GUICommandManager about this operation.
Definition at line 420 of file OsgWindows.cpp. References GUICommandManager::DoCommand(), eventHandler, and osgwind. |
|
|
creates a CommandCut object and awakes the GUICommandManager about this operation. Definition at line 413 of file OsgWindows.cpp. References GUICommandManager::DoCommand(), eventHandler, and osgwind. Referenced by RightView::OnObjectrightmenuCut(). |
|
|
creates a CommandDelete object and awakes the GUICommandManager about this operation.
Definition at line 404 of file OsgWindows.cpp. References GUICommandManager::DoCommand(), eventHandler, and osgwind. |
|
|
creates a CommandDelete object and awakes the GUICommandManager about this operation. Definition at line 394 of file OsgWindows.cpp. References GUICommandManager::DoCommand(), eventHandler, and osgwind. Referenced by RightView::OnObjectrightmenuDelete(). |
|
|
creates a CommandDeselect object and awakes the GUICommandManager about this operation.
Definition at line 468 of file OsgWindows.cpp. References CommandDeselect::execute(), and osgwind. |
|
|
creates a CommandDeselectAll object and awakes the GUICommandManager about this operation. Definition at line 461 of file OsgWindows.cpp. References CommandDeselectAll::execute(), and osgwind. Referenced by AnimationWindow::deselectAll(), and OSGEventHandler::rightClickMenu(). |
|
||||||||||||||||
|
creates a CommandInsertEnvObj object and awakes the GUICommandManager about this operation.
Definition at line 501 of file OsgWindows.cpp. References GUICommandManager::DoCommand(), eventHandler, and osgwind. Referenced by OSGEventHandler::drawBuilding(), OSGEventHandler::drawTree(), and RightView::OnEnvironmentalobjectHouse32909(). |
|
||||||||||||||||||||
|
creates a CommandInsertTrafficLight object and awakes the GUICommandManager about this operation.
Definition at line 475 of file OsgWindows.cpp. References GUICommandManager::DoCommand(), eventHandler, and osgwind. Referenced by OSGEventHandler::drawLight(), RightView::OnTrafficlightGreen(), RightView::OnTrafficlightRed(), and RightView::OnTrafficlightYellow(). |
|
||||||||||||
|
||||||||||||||||
|
creates a CommandInsertVehicle object and awakes the GUICommandManager about this operation.
Definition at line 494 of file OsgWindows.cpp. References GUICommandManager::DoCommand(), eventHandler, and osgwind. Referenced by OSGEventHandler::drawVehicleDodge(), OSGEventHandler::drawVehicleSemi(), RightView::OnVehicleAutomobile(), RightView::OnVehicleKamyon(), and RightView::OnVehicleTruck(). |
|
|
creates a CommandPaste object and awakes the GUICommandManager about this operation. Definition at line 439 of file OsgWindows.cpp. References GUICommandManager::DoCommand(), eventHandler, and osgwind. Referenced by RightView::OnFreeplacerightmenuPaste(). |
|
||||||||||||
|
creates a CommandRotate object and awakes the GUICommandManager about this operation.
Definition at line 515 of file OsgWindows.cpp. References GUICommandManager::DoCommand(), eventHandler, and osgwind. |
|
|
creates a CommandRotate object and awakes the GUICommandManager about this operation.
Definition at line 508 of file OsgWindows.cpp. References GUICommandManager::DoCommand(), eventHandler, and osgwind. Referenced by RightView::OnObjectrightmenuRotate(). |
|
||||||||||||
|
creates a CommandSelect object and awakes the GUICommandManager about this operation.
Definition at line 446 of file OsgWindows.cpp. References CommandSelect::execute(), and osgwind. Referenced by OSGEventHandler::select(). |
|
|
creates a CommandSelectAll object and awakes the GUICommandManager about this operation. Definition at line 453 of file OsgWindows.cpp. References CommandSelectAll::execute(), and osgwind. |
|
||||||||||||||||
|
creates a CommandTranslate object and awakes the GUICommandManager about this operation.
Definition at line 522 of file OsgWindows.cpp. References GUICommandManager::DoCommand(), eventHandler, and osgwind. Referenced by OSGEventHandler::handle(). |
|
|
creates a new key frame and pushes it to the frames vector when the user inserts a new frame from the menubar. Definition at line 215 of file OsgWindows.cpp. References clickedFrameId, currentFrameNum, frames, getConstantRoot(), objects, osgwind, sortFrames(), and VEHICLE. |
|
|
adds a new object to the objects vector.
Definition at line 38 of file OsgWindows.cpp. References objects. Referenced by CommandInsertEnvObj::CommandInsertEnvObj(), CommandInsertTrafficLight::CommandInsertTrafficLight(), CommandInsertTrafficSign::CommandInsertTrafficSign(), CommandInsertVehicle::CommandInsertVehicle(), and CommandPaste::CommandPaste(). |
|
|
shows if it is possible to add a new key frame to the environment.
Definition at line 371 of file OsgWindows.cpp. References clickedFrameId, currentFrameNum, and frames. |
|
|
shows if it is possible to delete a key frame from the environment.
Definition at line 380 of file OsgWindows.cpp. References clickedFrameId, currentFrameNum, and frames. |
|
|
a member method showing if redo operation can be performed.
Definition at line 534 of file OsgWindows.cpp. References GUICommandManager::CanRedo(), and eventHandler. |
|
|
a member method showing if undo operation can be performed.
Definition at line 528 of file OsgWindows.cpp. References GUICommandManager::CanUndo(), and eventHandler. |
|
||||||||||||
|
changes current frame, make its root draw, and make the environment editable.
Definition at line 139 of file OsgWindows.cpp. References currentFrameNum, getConstantRoot(), objects, onDisplayFrameId, osgwind, and VEHICLE. Referenced by clickedOnAFrame(). |
|
|
clears the copied objects vector. Definition at line 614 of file OsgWindows.cpp. References copiedObjects. Referenced by CommandCut::execute(), CommandCopy::execute(), and FileHandler::loadFile(). |
|
|
clears the cut objects vector. Definition at line 619 of file OsgWindows.cpp. References cutObjects. Referenced by CommandCut::execute(), FileHandler::loadFile(), and CommandCut::unexecute(). |
|
|
clears all the keyframes from the environment. Definition at line 609 of file OsgWindows.cpp. References frames. Referenced by FileHandler::loadFile(). |
|
|
clears the objects vector. Definition at line 648 of file OsgWindows.cpp. References objects. |
|
|
clears the selected objects vector. Definition at line 604 of file OsgWindows.cpp. References selectedObjects. Referenced by CommandSelect::execute(), CommandDelete::execute(), and FileHandler::loadFile(). |
|
|
decides which keyframe root should be drawn to the scene and make it draw.
Definition at line 125 of file OsgWindows.cpp. References changeCurrentFrame(), clickedFrameId, displayAFrame(), findReferenceFrame(), and onDisplayFrameId. Referenced by TimelineEventHandler::select(). |
|
|
removes the current frame from the frames vector when the user deletes a frame from the menubar. Definition at line 274 of file OsgWindows.cpp. References GUICommandManager::Clear(), currentFrameNum, eventHandler, frames, mainRoot, objects, and onDisplayFrameId. |
|
|
makes root of any frame,which is not current frame draw, and make the environment non_editable.
Definition at line 185 of file OsgWindows.cpp. References currentFrameNum, and frames. Referenced by clickedOnAFrame(). |
|
|
adds the geode of the given object to the scene root.
Definition at line 60 of file OsgWindows.cpp. References TraffEduObject::getIsBeforeCreated(), TraffEduObject::getObjectId(), mainRoot, and objects. Referenced by CommandPaste::execute(), CommandInsertVehicle::execute(), CommandInsertTrafficSign::execute(), CommandInsertTrafficLight::execute(), CommandInsertEnvObj::execute(), CommandDelete::unexecute(), and CommandCut::unexecute(). |
|
|
deletes the geode of the given object from the scene root.
Definition at line 53 of file OsgWindows.cpp. References TraffEduObject::getObjectId(), mainRoot, and objects. Referenced by CommandDelete::execute(), CommandCut::execute(), CommandPaste::unexecute(), CommandInsertVehicle::unexecute(), CommandInsertTrafficSign::unexecute(), CommandInsertTrafficLight::unexecute(), and CommandInsertEnvObj::unexecute(). |
|
|
removes the given object from the selected objects vector.
Definition at line 634 of file OsgWindows.cpp. References TraffEduObject::getObjectId(), TraffEduObject::getObjectType(), and selectedObjects. Referenced by CommandDeselect::CommandDeselect(). |
|
|
copies all the active objects in the objects vector to the selected objects vector. Definition at line 624 of file OsgWindows.cpp. References getObjects(), osgwind, and setSelectedObjects(). |
|
|
finds the frameId of the keyframe that is nearest to the frame that has frameId equals to the id.
Definition at line 346 of file OsgWindows.cpp. References frames. Referenced by clickedOnAFrame(). |
|
|
shows if background music is inserted.
Definition at line 653 of file OsgWindows.cpp. References m_b_AudioInserted. |
|
|
returns the main scene root of the environment.
Definition at line 72 of file OsgWindows.cpp. References mainRoot. Referenced by addNewFrame(), changeCurrentFrame(), TraffEduObject::deleteObjectPAT(), CommandView::hideDispEnvObjs(), CommandView::hideDispTrafficLights(), CommandView::hideDispTrafficSigns(), CommandView::hideDispVehicles(), FileHandler::loadFile(), loadFrame(), AnimationWindow::loadSkyBox(), RoadForm::OnBnClickedButton10(), RightView::RightView(), and RightView::SetSceneData(). |
|
|
returns the copied objects vector.
Definition at line 599 of file OsgWindows.cpp. References copiedObjects. Referenced by CommandPaste::CommandPaste(), and CommandCut::execute(). |
|
|
returns the current frame.
Definition at line 87 of file OsgWindows.cpp. References currentFrameNum, and frames. |
|
|
returns the current frame id.
Definition at line 20 of file OsgWindows.cpp. References currentFrameNum. Referenced by TraffEduObject::addTree(), TraffEduObject::display(), TraffEduObject::getPAT(), TraffEduObject::getPosition(), TraffEduObject::getRotate(), TraffEduObject::getScale(), OSGEventHandler::handle(), RoadForm::OnBnClickedButton10(), RightView::OnFreeplacerightmenuInserttext(), RightView::OnUpdateDikkat(), RightView::OnUpdateEnvironmentalobjectHouse(), RightView::OnUpdateEnvironmentalobjectHouse32909(), RightView::OnUpdateTrafficsignIlerimecburiyon32950(), RightView::OnUpdateTrafficsignIlerivasagamecburiyon32951(), RightView::OnUpdateTrafficsignIlerivesolamecburiyon32952(), RightView::OnUpdateTrafficsignIsikliisaretcihazi32932(), RightView::OnUpdateTrafficsignOndekitasitigecmekyasaktir32947(), RightView::OnUpdateTrafficsignSagadonulmez32944(), RightView::OnUpdateTrafficsignSagamecburiyon32948(), RightView::OnUpdateTrafficsignSaganayol32937(), RightView::OnUpdateTrafficsignSagasureklitehlikeliviraj32935(), RightView::OnUpdateTrafficsignSagasureklitehlikeliviraj32958(), RightView::OnUpdateTrafficsignSagatehlikeliviraj32933(), RightView::OnUpdateTrafficsignSoladonulmez32945(), RightView::OnUpdateTrafficsignSolamecburiyon32949(), RightView::OnUpdateTrafficsignSolanayol32942(), RightView::OnUpdateTrafficsignSolasureklitehlikeliviraj32936(), RightView::OnUpdateTrafficsignSolatehlikeliviraj32934(), RightView::OnUpdateTrafficsignSolatehlikeliviraj32957(), RightView::OnUpdateTrafficsignUdonusuyapilmaz32946(), RightView::OnUpdateTrafficsignYolver32931(), RightView::OnUpdateVehicleAutomobile(), RightView::OnUpdateVehicleTruck(), TraffEduObject::setPosition(), TraffEduObject::setRotate(), and TraffEduObject::setScale(). |
|
|
returns the cut objects vector.
Definition at line 580 of file OsgWindows.cpp. References cutObjects. Referenced by CommandPaste::CommandPaste(), and CommandCut::execute(). |
|
|
returns the frames vector in the environment.
Definition at line 47 of file OsgWindows.cpp. References frames. Referenced by TraffEduObject::addObjectPAT(), AnimationWindow::generateSeq(), TimelineEventHandler::paintGrey(), TimelineEventHandler::paintWhiteAll(), FileHandler::saveFile(), and Vehicle::Vehicle(). |
|
|
returns the object vector in the environment.
Definition at line 42 of file OsgWindows.cpp. References objects. Referenced by AnimationWindow::createConstantObjects(), CommandSelectAll::execute(), CommandSelect::execute(), CommandDeselectAll::execute(), CommandDeselect::execute(), AnimationWindow::exit(), fillSelectedObjects(), AnimationWindow::followVehicle(), CommandView::hideDispEnvObjs(), CommandView::hideDispTrafficLights(), CommandView::hideDispTrafficSigns(), CommandView::hideDispVehicles(), CommandSelectAll::unexecute(), and CommandDeselectAll::unexecute(). |
|
|
returns the on display frame id.
Definition at line 388 of file OsgWindows.cpp. References onDisplayFrameId. |
|
|
returns the selected objects vector.
Definition at line 561 of file OsgWindows.cpp. References selectedObjects. Referenced by CommandCut::CommandCut(), CommandDelete::CommandDelete(), CommandRotate::CommandRotate(), CommandSelect::CommandSelect(), OSGEventHandler::drag(), and OSGEventHandler::rightClickMenu(). |
|
|
returns the textArray vector in the environment.
Definition at line 210 of file OsgWindows.cpp. References textArray. Referenced by CommandText::createTextGroup(), and RightView::OnFreeplacerightmenuInserttext(). |
|
|
returns the text root of the environment.
Definition at line 77 of file OsgWindows.cpp. References textRoot. Referenced by RightView::OnFreeplacerightmenuInserttext(). |
|
|
returns reference to the scene viewer.
Definition at line 137 of file OsgWindows.h. References viewer. Referenced by CommandCamera::ManipulateCamera(), RightView::OnPaint(), RightView::RenderFrame(), RightView::SetSceneData(), and RightView::~RightView(). |
|
|
a member method showing if GUICommandManager is awaken before.
Definition at line 549 of file OsgWindows.cpp. References eventHandler, and GUICommandManager::IsDirty(). |
|
|
loads a new frame to the environment.
Definition at line 251 of file OsgWindows.cpp. References currentFrameNum, getConstantRoot(), objects, osgwind, sortFrames(), and VEHICLE. |
|
|
calls the Redo method of the GUICommandManager. Definition at line 544 of file OsgWindows.cpp. References eventHandler, and GUICommandManager::Redo(). |
|
|
returns index of the frame that has frameId equal to the id.
Definition at line 115 of file OsgWindows.cpp. References frames, and sizeOfFrames(). Referenced by TraffEduObject::addObjectPAT(), TraffEduObject::addTree(), TraffEduObject::display(), TraffEduObject::getPAT(), TraffEduObject::getPosition(), TraffEduObject::getRotate(), TraffEduObject::getScale(), TraffEduObject::setPosition(), TraffEduObject::setRotate(), and TraffEduObject::setScale(). |
|
|
sets clicked frame id.
Definition at line 29 of file OsgWindows.cpp. References clickedFrameId. |
|
|
add a new object to the copied objects vector.
Definition at line 594 of file OsgWindows.cpp. References copiedObjects. |
|
|
copies all the objects in the selected objects vector to the cut objects vector. Definition at line 585 of file OsgWindows.cpp. References copiedObjects, and selectedObjects. Referenced by CommandCopy::execute(), and CommandCut::unexecute(). |
|
|
sets current frame id.
Definition at line 25 of file OsgWindows.cpp. References currentFrameNum. |
|
|
add a new object to the cut objects vector.
Definition at line 575 of file OsgWindows.cpp. References cutObjects. |
|
|
moves all the objects in the selected objects vector to the cut objects vector. Definition at line 566 of file OsgWindows.cpp. References cutObjects, and selectedObjects. Referenced by CommandCut::execute(), CommandPaste::unexecute(), and CommandCut::unexecute(). |
|
|
sets on display frame id.
Definition at line 33 of file OsgWindows.cpp. References onDisplayFrameId. |
|
|
add a new object to the selected objects vector.
Definition at line 555 of file OsgWindows.cpp. References selectedObjects. Referenced by CommandSelectAll::execute(), CommandSelect::execute(), fillSelectedObjects(), CommandDeselectAll::unexecute(), CommandDelete::unexecute(), and CommandCut::unexecute(). |
|
|
returns size of the frames vector.
Definition at line 82 of file OsgWindows.cpp. References frames. Referenced by TraffEduObject::addObjectPAT(), returnIndex(), Vehicle::setPositionAll(), and Vehicle::Vehicle(). |
|
|
sorts the keyframes in the frames vector according to their frameId. Definition at line 98 of file OsgWindows.cpp. References frames. Referenced by addNewFrame(), and loadFrame(). |
|
|
calls the Undo method of the GUICommandManager. Definition at line 539 of file OsgWindows.cpp. References eventHandler, and GUICommandManager::Undo(). |
|
|
a private variable. It holds id of the frame that is clicked from the timeline. Definition at line 63 of file OsgWindows.h. Referenced by addNewFrame(), canAddNewFrame(), canDeleteAFrame(), clickedOnAFrame(), OSGWindows(), and setClickedFrameId(). |
|
|
a private vector of TraffEduObjects. It holds the copied objects in the environment Definition at line 87 of file OsgWindows.h. Referenced by clearCopiedObjects(), getCopiedObjects(), and setCopiedObjects(). |
|
|
a private variable. It holds pointer to the current frame. Definition at line 39 of file OsgWindows.h. |
|
|
a private variable. It holds the current frame id. Definition at line 33 of file OsgWindows.h. Referenced by addNewFrame(), canAddNewFrame(), canDeleteAFrame(), changeCurrentFrame(), deleteFrame(), displayAFrame(), getCurrentFrame(), getCurrentFrameId(), loadFrame(), OSGWindows(), and setCurrentFrameId(). |
|
|
a private vector of TraffEduObjects. It holds the cut objects in the environment Definition at line 93 of file OsgWindows.h. Referenced by clearCutObjects(), getCutObjects(), and setCutObjects(). |
|
|
a private variable. It holds pointer to the event handler of the GUI. Definition at line 75 of file OsgWindows.h. Referenced by addCommandCut(), addCommandDelete(), addCommandInsertEnvObj(), addCommandInsertTrafficLight(), addCommandInsertTrafficSign(), addCommandInsertVehicle(), addCommandPaste(), addCommandRotate(), addCommandTranslate(), canRedo(), canUndo(), deleteFrame(), isModified(), OSGWindows(), redo(), and undo(). |
|
|
a private vector of Frames. It holds key frames. Definition at line 15 of file OsgWindows.h. Referenced by addNewFrame(), canAddNewFrame(), canDeleteAFrame(), clearFrames(), deleteFrame(), displayAFrame(), findReferenceFrame(), getCurrentFrame(), getFrames(), returnIndex(), sizeOfFrames(), and sortFrames(). |
|
|
a private variable. It shows if background music is inserted into the environment or not. Definition at line 101 of file OsgWindows.h. Referenced by getAudioFlag(), RightView::OnFreeplacerightmenuInsertaudio(), RightView::OnUpdateFreeplacerightmenuInsertaudio(), and OSGWindows(). |
|
|
a private variable. It holds pointer to the main root of the scene. Definition at line 51 of file OsgWindows.h. Referenced by deleteFrame(), doAddGeode(), doDeleteGeode(), getConstantRoot(), and OSGWindows(). |
|
|
a private vector of TraffEduObjects. It holds objects in the environment. Definition at line 21 of file OsgWindows.h. Referenced by addNewFrame(), addObject(), changeCurrentFrame(), clearObjects(), deleteFrame(), doAddGeode(), doDeleteGeode(), getObjects(), and loadFrame(). |
|
|
a private variable. It holds id of the frame that is currently displayed. Definition at line 69 of file OsgWindows.h. Referenced by changeCurrentFrame(), clickedOnAFrame(), deleteFrame(), getOnDisplayFrameId(), OSGWindows(), and setOnDisplayFrameId(). |
|
|
a private vector of TraffEduObjects. It holds the selected objects in the environment Definition at line 81 of file OsgWindows.h. Referenced by clearSelectedObjects(), dropUnselectedObject(), getSelectedObjects(), setCopiedObjects(), setCutObjects(), and setSelectedObjects(). |
|
|
a private vector of textperFrame. It holds information about texts inserted into the environment. Definition at line 27 of file OsgWindows.h. Referenced by getTextArray(). |
|
|
a private variable. It holds pointer to the root that holds text information. Definition at line 57 of file OsgWindows.h. Referenced by getTextRoot(), and OSGWindows(). |
|
|
a private variable. It holds pointer to the viewer of the scene. Definition at line 45 of file OsgWindows.h. Referenced by getViewer(), and OSGWindows(). |
1.4.6-NO